package com.czk.pojo;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import lombok.ToString;

import java.util.Map;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/8/2 14:59
 */
@ToString
@XStreamAlias("xml")
public class TextMessage extends BaseMessage {
    @XStreamAlias("Content")
    private String content;

    public TextMessage(Map<String, String> map, String content) {
        // 调用父类构造
        super(map);
        this.setMsgType("text");
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

}
